package com.sedireco.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class MainActivity2 extends Activity {
    CameraPreview cameraView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        cameraView = (CameraPreview) findViewById(R.id.cameraView);
    }


    @Override
    protected void onResume() {
        super.onResume();
        cameraView.onResume(this);
    }

    @Override
    protected void onPause() {
        cameraView.onPause();
        super.onPause();
    }

    public void takePic(View view) {
        cameraView.takePicture();
    }
}